package com.ruoyi.flow.model;

import com.youlai.common.result.Result;
import com.youlai.common.result.ResultCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel("工作流应答接口") public class FlowResult extends Result {
    @ApiModelProperty("实例ID") private String instId;
    @ApiModelProperty("系统编码") private String sysCode;
    @ApiModelProperty("系统名称") private String sysName;
    @ApiModelProperty("流程编码") private String flowCode;
    @ApiModelProperty("流程名称") private String flowName;
    @ApiModelProperty("前置节点编码") private String prevNodeCode;
    @ApiModelProperty("前置节点名称") private String prevNodeName;
    @ApiModelProperty("执行线编码") private String lineCode;
    @ApiModelProperty("执行线名称") private String lineName;
    @ApiModelProperty("当前节点编码") private String currNodeCode;
    @ApiModelProperty("当前节点名称") private String currNodeName;
    @ApiModelProperty("下一节点待办信息") private List<TodoTask> todoTasks;

    public FlowResult() {
        super();
    }

    public FlowResult(ResultCode resultCode) {
        super(resultCode);
    }

    public FlowResult(String code, String msg) {
        super(code, msg);
    }
}
